<template>
  <div :style="`height:${height};width:${width};`" class="data-con-box">
    <div class="data-con-title">{{ title }}</div>
    <div class="data-con-no-title">
      <slot name="notitlebox"> </slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ""
    },
    width: {
      type: String,
      default: "100%"
    },
    height: {
      type: String,
      default: "100%"
    }
  },
  data() {
    return {};
  }
};
</script>

<style lang="scss">
.data-con-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}
.data-con-title {
  width: 100%;
  height: 36px;
  line-height: 35px;
  text-align: center;
  color: #ffffff;
  font-size: 20px;
  // border-bottom: 3px solid #016569;
  background: url('~@/assets/processing-management/process-management-data/title-box.png') center no-repeat;
  background-size: auto 100%;
  position: absolute;
  left: -50%;
  transform: translateX(50%);
  top: 2px;
}
.data-con-no-title {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  margin-top: 20px;
  padding-top: 20px;
  background: #024355;
}
</style>
